namespace SimpleWebServices.Net.Mail
{
    using System.IO;
    using System.Net.Mail;
    using SimpleWebServices;
    using Xunit;

    public sealed class XmlAttachmentFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(new ObjectExpectations<XmlAttachment>()
                .DerivesFrom<Attachment>()
                .IsConcreteClass()
                .IsSealed()
                .NoDefaultConstructor()
                .Result);
        }

        [Fact]
        public void ctor_Stream_string()
        {
            using (Stream stream = new MemoryStream())
            {
                Assert.NotNull(new XmlAttachment(stream, "attachment.xml"));
            }
        }
    }
}